import { useDict } from './hook/dict'
import { useConfig, useInitLoad } from './hook/config'
import { parseTime } from './tools/date'
import { deepClone } from './tools/object'
import { resetForm, addDateRange, dataToForm, listToTree, parseRows, staticUrl } from './frame'

export default {
  install(app) {
    app.config.globalProperties.useDict = useDict
    app.config.globalProperties.useConfig = useConfig
    app.config.globalProperties.useInitLoad = useInitLoad
    app.config.globalProperties.parseTime = parseTime
    app.config.globalProperties.resetForm = resetForm
    app.config.globalProperties.addDateRange = addDateRange
    app.config.globalProperties.listToTree = listToTree
    app.config.globalProperties.dataToForm = dataToForm
    app.config.globalProperties.deepClone = deepClone
    app.config.globalProperties.parseRows = parseRows
    app.config.globalProperties.staticUrl = staticUrl
  }
}
